﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FileRenamer
{
    [Serializable]
    public class RegReplace
    {
        public enum RegExpType
        {
            REPLACE,
            IGNORE,
            DATE
        }

        public RegReplace()
        {
            RegExp = "Regular Expression";
            RepString = "Replacement String";
            Type = RegExpType.REPLACE;
            Priority = 100;
        }

        public RegReplace(String regExp, String repString)
        {
            RegExp = regExp;
            RepString = repString;
            Type = RegExpType.REPLACE;
        }

        public RegReplace(String regExp, String repString, RegExpType type)
        {
            RegExp = regExp;
            RepString = repString;
            Type = type;
            Priority = 100;
        }

        public RegReplace(String regExp, RegExpType regType)
        {
            RegExp = regExp;
            RepString = null;
            Type = RegExpType.IGNORE;
        }

        public String RegExp { get; set; }
        public String RepString {get; set; }
        public RegExpType Type { get; set; }
        public int Priority { get; set; }
    }
}
